/**  

* @Title: Contact.java 

* @Package com.gxbadge.model 

* @Description: TODO(用一句话描述该文件做什么) 

* @author CST

* @version V1.0  

*/ 

package com.gxbadge.model;

import java.io.Serializable;

public class Contact implements Serializable {
	
	private static final long serialVersionUID = 4589764126016146890L;
	private Integer conId;
	private String title;
	private String url;
	private String qq;
	private String email;
	private String msn;
	private String alibaba;
	private String phone;
	private String mobile;
	private String address;
	private String copyright;
	private String note;
	private Navigation nav;
	private Language lang;
	public Integer getConId() {
		return conId;
	}
	public void setConId(Integer conId) {
		this.conId = conId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public String getAlibaba() {
		return alibaba;
	}
	public void setAlibaba(String alibaba) {
		this.alibaba = alibaba;
	}
	
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCopyright() {
		return copyright;
	}
	public void setCopyright(String copyright) {
		this.copyright = copyright;
	}
	
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	
	public Language getLang() {
		return lang;
	}
	public void setLang(Language lang) {
		this.lang = lang;
	}
	
	public Navigation getNav() {
		return nav;
	}
	public void setNav(Navigation nav) {
		this.nav = nav;
	}
	public Contact(){
		
	}
	public Contact(Integer conId, String title, String url, String qq,
			String email, String msn, String alibaba, String phone, String mobile, String address,
			String copyright, String note, Navigation nav, Language lang) {
		super();
		this.conId = conId;
		this.title = title;
		this.url = url;
		this.qq = qq;
		this.email = email;
		this.msn = msn;
		this.alibaba = alibaba;
		this.phone = phone;
		this.mobile = mobile;
		this.address = address;
		this.copyright = copyright;
		this.note = note;
		this.nav = nav;
		this.lang = lang;
	}
	public boolean equals(Object obj){
		
		if (this == obj){
			return true;
		}
		if (obj != null && obj.getClass() == Contact.class){
			Contact con = (Contact)obj;
			return this.getConId().equals(con.getConId()) && this.getTitle().equals(con.getTitle()) && this.getUrl().equals(con.getUrl());
		}
		return false;

	}
	
	public int hashcode(){
		
		return this.getConId().hashCode()+this.getTitle().hashCode()+this.getUrl().hashCode();
		
	}
	
	public String toString(){
		
		return this.getConId().toString()+this.getTitle().toString()+this.getUrl().toString();

	}
}
